
<?php 
session_start();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
  echo "click";
}
if (isset($_SESSION["login"])) {
  session_destroy();

}
if (!empty($_SESSION["login"])) {
  echo "<h1><em>No estas logueado</em></h1>";
}

$page_title = 'FootballMGR!';

?>
<!doctype html>
<html lang="en">
  <link rel="stylesheet" href="includes/style.css" type="text/css" media="screen" />
<head>
  
	<meta charset="UTF-8">
	<title>Football Manager</title>
</head>
<body>
        
<br>
<br>


<br>
  <form action="login.php" method="POST">
    <div align="center" >
      <img src="portada.jpg"width='250' height='250'>
      <table width="259" align="center" >
        <tr>
          <td>Login</td>
          <td><input type="text" name="user" size="15" /></td>
        </tr>
        <tr>
          <td>Password</td>
          <td><input type="password" name="password" size="15" /></td>
        </tr>
        <tr>
          <td><input name="submit" type="submit" value="Entrar" />

        
    
  </form> 
<form action="registro.php">
  <td><input name="submit" type="submit" value="Nuevo usuario" />
    </form>
    </tr>
    </table>
    </div>

</body>
</html>